/**
 * @Description: 订单列表tab
 * @author tao.xie
 * @date $
 */

import { createAppContainer, createMaterialTopTabNavigator } from 'react-navigation'
import OrderList from './OrderList.js'

const TabNavigator = createMaterialTopTabNavigator({
  AllOrder: {
    screen: OrderList,
    navigationOptions: {
      tabBarLabel: '全部'
    }
  },
  ToPayOrder: {
    screen: OrderList,
    navigationOptions: {
      tabBarLabel: '待支付'
    }
  },
  ToReceiveOrder: {
    screen: OrderList,
    navigationOptions: {
      tabBarLabel: '待确认'
    }
  },
  ToCommentOrder: {
    screen: OrderList,
    navigationOptions: {
      tabBarLabel: '待评价'
    }
  }

},
{ lazy: true }
)

export default createAppContainer(TabNavigator)